

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>编辑菜谱</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <#include "../../include/layui.ftl" />
</head>
<body>

  <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body" style="padding: 15px;">
        <form id="layuiForm" class="layui-form layui-form-pane" action="/console/com.fs.common.pojo.Recipes/modify" lay-filter="layer-from">
          <input type="hidden" name="id" value="">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="name" lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
                <div class= "layui-inline">
                    <label class="layui-form-label">主食材</label>
                    <div class="layui-input-block">
                        <input type="text" name="mainFood" lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
            </div>


            <div class="layui-form-item">
                <div class= "layui-inline">
                    <label class="layui-form-label">分娩方式</label>
                    <div class="layui-input-block">
                        <input type="text" name="modeType" lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
                <div class= "layui-inline">
                    <label class="layui-form-label">适宜体质</label>
                    <div class="layui-input-block">
                        <input type="text" name="suitable" lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class= "layui-inline">
                    <label class="layui-form-label">不宜症状</label>
                    <div class="layui-input-block">
                        <input type="text" name="notSuitable" lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
                <div class= "layui-inline">
                    <label class="layui-form-label">适宜症状</label>
                    <div class="layui-input-block">
                        <input type="text" name="suitableSymptom" lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class= "layui-inline">
                    <label class="layui-form-label">喂养方式</label>
                    <div class="layui-input-block" style="width: 180px;">
                        <select name="feedType" lay-verify="">
                            <option value="全" selected>全</option>
                            <option value="母乳">母乳</option>
                            <option value="奶粉">奶粉</option>
                        </select>
                    </div>
                </div>
                <div class= "layui-inline">
                    <label class="layui-form-label">菜类型</label>
                    <div class="layui-input-block">
                        <input type="text" name="meal"  autocomplete="off" placeholder="请输入" class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline" style="width: 190px;">
                    <label class="layui-form-label" style="width: 50px;">周</label>
                    <div class="layui-input-block" style="margin-left: 50px;">
                        <input type="text" name="week" lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
                <div class="layui-inline" style="width: 190px;">
                    <label class="layui-form-label" style="width: 50px;">天</label>
                    <div class="layui-input-block" style="margin-left: 50px;">
                        <input type="text" name="day" lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
                <div class="layui-inline" style="width: 190px;">
                    <label class="layui-form-label" style="width: 50px;">餐</label>
                    <div class="layui-input-block" style="margin-left: 50px;">
                        <input type="text" name="meal" lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">食材</label>
                <div class="layui-input-block">
                    <textarea name="foods" placeholder="请输入内容" class="layui-textarea" style="resize: none;"></textarea>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">步骤</label>
                <div class="layui-input-block">
                    <textarea name="step" placeholder="请输入内容" class="layui-textarea" style="resize: none;"></textarea>
                </div>
            </div>
        </form>
      </div>
    </div>
  </div>


  <script>
  layui.config({
    base: '${path}/plug-in/layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index','form','jquery'],function () {
    var form = layui.form,
           $ = layui.$;
    form.val("layer-from", $.extend(true,{},parent._data));
    $("#layuiForm").find("input,textarea").attr("readonly",true);
  });
  </script>
</body>
</html>
